#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
	int day = 0;
	scanf("%d", &day);

	switch (day)
	{
		case (2 || 3 || 4 || 5):
			printf("weekday");
			break;
		case (6 || 7):
			printf("weekend");
			break;


	}

	return 0;
}